package com.ecb.business.repository;

import com.ecb.business.po.ChainConfigPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChainConfigDao extends JpaRepository<ChainConfigPO, Integer> {

    List<ChainConfigPO> findAllByChainIdLikeOrChainNameLikeAndStatusEquals(String chainId, String chainName, int status);

    ChainConfigPO findByIdAndStatus(int id, int status);
}
